package ec_si_template;

/**
 * All parameters are set in this file
 * 
 * @author Andreas Janecek
 * 
 */
public class Config {

	// GENERAL PARAMETERS

	/**
	 * Size of the swarm / population
	 */
	public final static int nPop = 30;

	/**
	 * Dimension of the objective function
	 */
	public static final int dim = 2;

	/**
	 * Maximum number of function evaluations
	 */
	public static final long max_evaluations = (long) 4000;

	// ALGORITHM SPECIFIC PARAMETERS

	// OUTPUT AND PLOTTING AND WRITING TO FILE

	/**
	 * Console output: 0: no output; 1: only fitness; 2: fitness and position
	 */
	public static final int ouputLevel = 1;

	/**
	 * If set to true the position of individuals in each iteration are written
	 * to file "fileName" - see below
	 */
	public static final boolean printToFile = true;

	/**
	 * If set to true the fitness history will be shown as a plot
	 */
	public static final boolean plotFitnessHistory = false;

	/**
	 * Value that controls the chance rate from a TRIAL vector to receive a
	 * attribute from a DONOR vector
	 */
	public static final double CR = 0.1;
	
	/**CR Parameter for fast convergence*/
	public static final double HIGH_CR = 0.8;

	/**
	 * Value wich control the mutation process, this value regulate by how much
	 * a diference from parent vectors influence in the DONOR vector
	 */
	public static final double F = 0.5;

}
